package com.blb.controller;

import com.blb.pojo.vo.MediaCoverageVo;
import com.blb.service.MediaCoverageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.List;
import java.util.Map;

/**
 * @author： yrh
 * @ClassName: MediaCoverageController
 * @Description: 根据年份查询媒体报道
 * @Date: Created in 17:07 2022/1/5
 * @Version 1.0
 */
@RestController
@CrossOrigin(origins = "*")
@Api(tags = "媒体报道")
public class MediaCoverageController {
    @Autowired
    private MediaCoverageService mediaCoverageService;
    @GetMapping("/mediaCoverage")
    @ApiOperation(value = "按照年份分类媒体报道")
    public List<MediaCoverageVo> selectOrTime(){
        return  mediaCoverageService.selectAll();
    }
}
